import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        PriorityQueue queue = new PriorityQueue();
       PriorityQueue p = new PriorityQueue();
       int[] array = new int[]{1,4,3,2,5};
       p.createHeap(array);

        //PriorityQueue.shiftDown(0, p.usedSize);
        //PriorityQueue.push(0);
        //PriorityQueue.shiftUp(4);
        //PriorityQueue.pollHeap();
        PriorityQueue.sort();
        //PriorityQueue.sort1();
        PriorityQueue.sort2();
        System.out.println(Arrays.toString(PriorityQueue.elem));
    }
}